package com.design.composite.football;

import java.util.Arrays;
import java.util.List;

/**
 * @author xiemiao
 * @description
 * @date 2023/08/16
 */
public class Client {
    public static void main(String[] args) {
        List<String> hollandStarNames = Arrays.asList(
                "Van Dijk", "De Jong", "Depay", "Wijnaldum", "Malen"
        );

        List<String> germanyStarNames = Arrays.asList(
                "Neuer", "Havertz", "Kroos", "Gnabry", "Muller"
        );

        List<String> portugalStarNames = Arrays.asList(
                "Ronaldo", "Fernandes", "Felix", "Jota", "Carvalho"
        );

        List<String> denmarkStarNames = Arrays.asList(
                "Kjaer", "Eriksen", "Braithwaite", "Hoibjerg", "Dolberg"
        );

        Team hollandTeam = new Team("holland");
        Team germanyTeam = new Team("germany");
        Team portugalTeam = new Team("portugal");
        Team denmarkTeam = new Team("denmark");

        for (String starName : hollandStarNames) {
            Member member = new Member(starName);
            hollandTeam.addMembers(member);
        }
        for (String starName : germanyStarNames) {
            Member member = new Member(starName);
            germanyTeam.addMembers(member);
        }
        for (String starName : portugalStarNames) {
            Member member = new Member(starName);
            portugalTeam.addMembers(member);
        }
        for (String starName : denmarkStarNames) {
            Member member = new Member(starName);
            denmarkTeam.addMembers(member);
        }

        Group group = new Group("B组");
        group.setNotice("下午3点，召开重要会议，事关出线！");
        group.addMember(hollandTeam);
        group.addMember(germanyTeam);
        group.addMember(portugalTeam);
        group.addMember(denmarkTeam);

        group.display();


    }
}
